package top.system.dept.mapper;

import org.springframework.stereotype.Repository;
import top.system.dept.pojo.Invoice;

import java.util.Date;
import java.util.List;

@Repository
public interface InvoiceMapper {

    List<Invoice> getAllInvoice(int pageNum, int pageSize);

    List<Invoice> getInvoiceByDept(int deptId);

    List<Invoice> getInvoiceByUser(int userId);

    List<Invoice> getInvoiceByDate(Date beginDate, Date endDate);

    int addInvoice(Invoice invoice);

}
